//== SAGITTARIUS ============================================================================

//== BEGINNING OF CODE ===============================================================

#include "sagittarius/core/SagittariusCore.h"
#include "sagittarius/lexer/lexsymtab.h"
#include "sagittarius/io/io.h"
//#include <stddef.h>
//#include <malloc.h>
//#include <string.h>

void lex_initSymTab(lsymtab* tab) {
    tab->r = create_radix_root();
}

void lex_destroySymTab(lsymtab* tab) {
    destroy_radix_node(tab->r);
}

int lex_installSymbol(lsymtab* tab, constLexBuf sym, lASTNode* expr) {
    return radix_search_and_add(tab->r, sym, expr);
}
